<template>
	<view class="my-container">
    <MyLoginVue v-if="!updatetokenStore.token"></MyLoginVue>
		<MyUserinfoVue v-else></MyUserinfoVue>
	</view>
</template>

<script setup>
	import {
		useSetTabBarBadge
	} from '@/hooks/useSetTabBarBadge.js';
	import {
		ref,
		reactive,
		watch,
		computed
	} from 'vue';
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		useupdatetokenStore 
	} from '@/store/store.js';
	import MyLoginVue from '../../components/MyLogin/MyLogin.vue';
	import MyUserinfoVue from '../../components/MyUserinfo/MyUserinfo.vue';
	const updatetokenStore  = useupdatetokenStore()
	// 使用组合式函数
	const {
		setBadge
	} = useSetTabBarBadge();
</script>

<style lang="scss">
page,
.my-container {
height: 100%;
}
</style>